package com.gulimall.cart.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description
 * @Author lhj
 * @Date 2024/3/17 15:56
 */

@FeignClient(value = "gulimall-product")
public interface ProductFeignService {

    /**
     * 信息
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    R info(@PathVariable("skuId") Long skuId);


    /**
     * 获取sku销售属性
     * @param skuId skuId
     */
    @GetMapping("/product/skusaleattrvalue/skuSaleAttr/{skuId}")
    R getSkuAttr(@PathVariable Long skuId);
    
    
}
